/* index.ts */
import request from '@/utils/request'

export function songApi() {
  return {
    /** 获得歌单详情 */
    getSongListDetails: (params) => {
      return request({
        url: '/playlist/detail',
        method: 'get',
        params
      })
    },
    /** 获得喜欢音乐列表 */
    getLikeList: (params) => {
      return request({
        url: '/likelist',
        method: 'get',
        params
      })
    },
    /** 音乐是否可以播放 */
    checkMusicCanPlay: (params) => {
      return request({
        url: '/check/music',
        method: 'get',
        params
      })
    },
    getMusicComments(params) {
      return request({
        url: '/comment/music',
        method: 'get',
        params
      })
    }
  }
}
